#include<stdio.h>

int main()
{
      int a[5],i,j,m,t;

  printf("\nEnter 5 elements:");

  for(i=0;i<=4;i++)

  scanf("%d",&a[i]);

     for(i=0;i<=4;i++)
{
  for(j=0;j<=4-i;j++)

  {
    if(a[j]>a[j+1])

{
  t=a[j];
a[j]=a[j+1];

a[j+1]=t;
}
}
}
printf("\nSorted elements are:\n");
 for(i=0;i<=4;i++);
  printf("%d",a[i]);
 printf("\n\n\n\n\nPRESS ANY KEY TO EXIT....");

return 0;
}
